DX11 CREATE INDIRECT BUFFER

Creates an indirect buffer.
Indirect buffers are a special kind of byte address buffers that can be used to provide arguments to certain functions directly from VRAM without having to read it back to the CPU (which takes significant
time to do repeatedly, for example for each frame).
An indirect buffer is accessed just like a normal ByteAddressBuffer / RWByteAddressBuffer from your shaders. One application for them is to have one compute shader that determines how many times another
compute shader will be executed based on data either made up by the first compute shader itself or computed from buffer / texture resources available to it.
An indirect buffer is always created with ACCESSMODE_GPU_WRITABLE because its very purpose requires GPU write access.

  Syntax
Return Dword = DX11 CREATE INDIRECT BUFFER(byteSize)
  Parameters
byteSize
Dword
The size in bytes of the entire buffer; this value will be rounded up to the nearest even multiple of 4.

  Returns

The created indirect buffer.

  See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories